package com.yiren.backstage.currency.entity;

import com.yiren.backstage.currency.bean.PointBean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Transient;

import java.io.Serializable;

/**
 * @author lwb
 * @date :2021/12/23 10:51
 * @description: 轨迹点位
 */
@Entity(nameInDb = "trajectory_point", createInDb = false)
public class TrajectoryPointEntity implements Serializable {

    private static final long serialVersionUID = -1592426748720076658L;

    @Id
    @Property(nameInDb = "trajectory_point_id")
    private String id;

    /*** 外键 */
    @Property(nameInDb = "trajectory_id")
    private String trajectoryId;

    @Property(nameInDb = "x")
    public float x;     //东
    @Property(nameInDb = "y")
    public float y;     //北
    @Property(nameInDb = "Z")
    public float z;     //天
    @Property(nameInDb = "LON")
    private double lon;  //经度
    @Property(nameInDb = "LAT")
    private double lat;  //纬度
    @Property(nameInDb = "HIGH")
    private double h;    //高度
    @Property(nameInDb = "STATUS")
    private String status;    //状态
    @Property(nameInDb = "CREATE_TM")
    protected String createTm;      //创建时间
    @Property(nameInDb = "LAST_MODIFY_TM")
    protected String lastModifyTm;  //最后修改时间
    @Property(nameInDb = "CREATE_USER")
    protected String createUser;    //创建者
    @Property(nameInDb = "LAST_MODIFY_USER")
    protected String lastModifyUser;//最后修改者
    @Property(nameInDb = "VER")
    protected Long ver;             //版本
    @Property(nameInDb = "ORDER_INDEX")
    protected String orderIndex;    //排序索引
    @Property(nameInDb = "SYN_STATE")
    protected Integer synState;            //同步状态(0：无需同步  1：修改同步  2：新增同步  3：删除同步)

    @Transient
    private TrajectoryEntity trajectory;

    @Transient
    private PointBean point;

    @Generated(hash = 677388416)
    public TrajectoryPointEntity(String id, String trajectoryId, float x, float y,
                                 float z, double lon, double lat, double h, String status,
                                 String createTm, String lastModifyTm, String createUser,
                                 String lastModifyUser, Long ver, String orderIndex, Integer synState) {
        this.id = id;
        this.trajectoryId = trajectoryId;
        this.x = x;
        this.y = y;
        this.z = z;
        this.lon = lon;
        this.lat = lat;
        this.h = h;
        this.status = status;
        this.createTm = createTm;
        this.lastModifyTm = lastModifyTm;
        this.createUser = createUser;
        this.lastModifyUser = lastModifyUser;
        this.ver = ver;
        this.orderIndex = orderIndex;
        this.synState = synState;
    }

    @Generated(hash = 1602796223)
    public TrajectoryPointEntity() {
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTrajectoryId() {
        return this.trajectoryId;
    }

    public void setTrajectoryId(String trajectoryId) {
        this.trajectoryId = trajectoryId;
    }

    public float getX() {
        return this.x;
    }

    public void setX(float x) {
        this.x = x;
    }

    public float getY() {
        return this.y;
    }

    public void setY(float y) {
        this.y = y;
    }

    public float getZ() {
        return this.z;
    }

    public void setZ(float z) {
        this.z = z;
    }

    public double getLon() {
        return this.lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public double getLat() {
        return this.lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getH() {
        return this.h;
    }

    public void setH(double h) {
        this.h = h;
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateTm() {
        return this.createTm;
    }

    public void setCreateTm(String createTm) {
        this.createTm = createTm;
    }

    public String getLastModifyTm() {
        return this.lastModifyTm;
    }

    public void setLastModifyTm(String lastModifyTm) {
        this.lastModifyTm = lastModifyTm;
    }

    public String getCreateUser() {
        return this.createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getLastModifyUser() {
        return this.lastModifyUser;
    }

    public void setLastModifyUser(String lastModifyUser) {
        this.lastModifyUser = lastModifyUser;
    }

    public Long getVer() {
        return this.ver;
    }

    public void setVer(Long ver) {
        this.ver = ver;
    }

    public String getOrderIndex() {
        return this.orderIndex;
    }

    public void setOrderIndex(String orderIndex) {
        this.orderIndex = orderIndex;
    }

    public Integer getSynState() {
        return this.synState;
    }

    public void setSynState(Integer synState) {
        this.synState = synState;
    }

    public TrajectoryEntity getTrajectory() {
        return trajectory;
    }

    public void setTrajectory(TrajectoryEntity trajectory) {
        this.trajectory = trajectory;
    }

    public PointBean getPoint() {
        return point;
    }

    public void setPoint(PointBean point) {
        this.point = point;
    }

}